#!/usr/bin/env bash
## configure and install minimal openbox desktop environment

mkdir -p /home/user/.config && cp -r /home/user/hyperbola_0.4/user/.config /home/user/
echo
mkdir -p /home/user/.fonts && cp /home/user/hyperbola_0.4/user/.fonts/* /home/user/.fonts/
cd .fonts
tar -xf font-awesome_roboto.tar.xz
rm font-awesome_roboto.tar.xz
cd ..
echo
mkdir -p /home/user/.icons && cp /home/user/hyperbola_0.4/user/.icons/* /home/user/.icons/
cd .icons
tar -xf la-capitane_icons.tar.xz
tar -xf cursor-full.tar.xz
tar -xf Faenza.tar.xz
tar -xf Reversal-min_dark-grey_dark.tar.xz
rm la-capitane_icons.tar.xz
rm cursor-full.tar.xz
rm Faenza.tar.xz
rm Reversal-min_dark-grey_dark.tar.xz
cd ..
echo
mkdir -p /home/user/.themes && cp /home/user/hyperbola_0.4/user/.themes/* /home/user/.themes/
cd .themes
tar -xf main_best_themes.tar.xz 
rm main_best_themes.tar.xz
cd ..
echo
mkdir -p /home/user/.wallpaper && cp /home/user/hyperbola_0.4/user/.wallpaper/* /home/user/.wallpaper/
echo
cp /home/user/hyperbola_0.4/user/.bashrc /home/user/
echo
cp /home/user/hyperbola_0.4/user/.gtkrc-2.0 /home/user/
echo
cp /home/user/hyperbola_0.4/user/.xinitrc /home/user/
echo
cp /home/user/hyperbola_0.4/user/.Xresources /home/user/
echo startx
